$.texyla("setDefaults", {
	linkWindowDimensions: [330, 180]
});

// přepíše původní odkazové tlačítko
$.texyla("addButton", "link", function (e) {
	var _this = this;
	var cont = $(
		"<div><table><tbody>" +
		'<tr><th><label>' + this.lng.linkText + '</label></th><td><input type="text" class="link-text" value="' + this.texy.doTrimSelect().txt + '"></td></tr>' +
		'<tr><th><label>' + this.lng.linkUrl + '</label></th><td><input type="text" class="link-url" value="http://"></td></tr>' +
		"</tbody></table></div>"
	);
	
	this.window({
		name: "link",
		title: this.lng.linkHeading,
		el: cont,
		func: function () {
			_this.texy.replace('"' + cont.find(".link-text").val() + '":' + cont.find(".link-url").val());
		}
	});
});